<form class="form-horizontal form-validate form-modal" method="post" id="_post_form" action="{:url('info')}">
 <div class="modal-dialog" style="width:880px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">{$row['role_id'] > 0?'编缉角色':'添加角色'}</h4>
            </div>
            <div class="modal-body tableinfo">
{eq name="row.is_sys" value="1"}
系统默认角色不能修改
{else/}
 <table border="0" cellpadding="0" cellspacing="0" width="100%" >
  <tr>
    <td width="100" align="right">角色名称：</td>
    <td><input name="role_name" type="text" value="{$row.role_name}" data-msg-required="角色名称不能为空" data-rule-required="true"/><span class="red">*</span></td>
  </tr>
  <tr>
    <td align="right">排序：</td>
    <td><input name="sort_order"  type="text" value="{$row.sort_order|intval}" /></td>
  </tr>
  <tr>
    <td align="right">角色说明：</td>
    <td><textarea name="info" id="info"  class="input-max">{$row.info}</textarea></td>
  </tr>
 </table>
<div class="line line-dashed line-lg pull-in " style="width:99%;"></div>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="table table-bordered " >
  {volist name="menuList" id="menu"}
     <tbody class="purview_box">
           <tr>
               <td  width="60"><label><input type="checkbox" class="all_check" data-type="{$menu.group}"> {$menu.name}</label></td>
                <td valign="top" colspan="2" >
                    {volist name="allPriv[$menu['group']]" id="priv"}
                            <label><input class="{$menu.group}" name="role_action[]" type="checkbox" {:in_array($priv['id'],$row['role_action'])?'checked':''} value="{$priv.id}" /> {$priv.name}</label>
                    {/volist}
                </td>
           </tr>
      </tbody>
    {/volist}
</table>
    <input type="hidden" pkid name="role_id" value="{$row.role_id|intval}">

        </div>
         <div class="modal-footer">
                <button type="submit" class="btn btn-primary" data-loading-text="保存中..."  ><i class="fa fa-edit"></i>保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>

{/eq}
    </div>
</div>
</form>
